<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="main.css">
    <title>Document</title>
</head>
<body>
    <div class="site-topbar">
       <div class="topbar-center">
           <div class="topbar-center-left">
            <a href="javascript::">舒华官网</a>
            <span> | </span>
            <a href="javascript::">SHUA OVERSEA</a>
            <span> | </span>
            <a href="javascript::" class="shoucang">收藏舒华官网</a>
            <span> | </span>
            <a href="javascript::" class="wx">官方微信</a>
           </div>
           <div class="topbar-center-right">
            <span>舒华商场欢迎你</span>
            <div class="gonggao">商城公告</div>
            <div class="gong-gao-down">

            </div>
           </div>
       </div>
       </div>
    </div>
    <div class="title">
        <div class="title-center">
            <a class="logo" href="javascript::"></a>
            <div class="search">
                <input type="text" style="float: left; width: 60%; height: 30%; margin-top: 5%; margin-left: 20%;">
                <input type="submit" style="top: 30%;height: 30%;position: absolute;margin-left: -9%;width: 10%;">
                <div class="search-hot-words" style="display: block;">
                    <a href="jabascript::">X3</a>
                    <a href="jabascript::">X6</a>
                </div>
                <!-- 推荐 -->
                <div class="search-recommend">
                    <ul style="list-style-type: none;">
                        <li>1</li>
                        <li>2</li>
                        <li>3</li>
                        <li>4</li>
                        <li>5</li>
                        <li>6</li>
                        <li>7</li>
                        <li>8</li>
                        <li>9</li>
                        <li>10</li>
                    </ul>

                </div>
            </div>
            
        </div>
    </div>
    <div class="titles">
        <div class="head">
            <ul>
                <li>全部商品分类</li>
                <li>首页</li>
                <li>企事业健身解决方案</li>
                <li>商用健身俱乐部</li>
                <li>全身健身俱乐部</li>
                <li>线上网店</li>
            </ul>
        </div>
    </div>
    <div class="main-center">
        <div class="playbox" style="position: relative;">
            <div class="index" style="width: 20%;">
                <ul class="index-ul">
                    <li class="index-li">
                        <a href="javascript:;">跑步机</a>
                        <i>&gt</i>
                        <ul class="child-ul">
                            <!-- <li><img src="http://www.shuhua.com/upload/icon/1460929558192618435.jpg" alt=""> 智能跑步机</li> -->
                            <li>多功能跑步机</li>
                            <li>跑步机垫子</li>
                            <li></li>
                            <li></li>
                            <li></li>
                        </ul>
                    </li>
                    <li class="index-li">
                        <a href="javascript:;">跑步机</a>
                        <i>&gt</i>
                        <ul class="child-ul">
                            <!-- <li><img src="http://www.shuhua.com/upload/icon/1460929558192618435.jpg" alt=""> 智能跑步机</li> -->
                            <li>多功能跑步机</li>
                            <li>跑步机垫子</li>
                            <li></li>
                            <li></li>
                            <li></li>
                        </ul>
                    </li>
                    <li class="index-li">
                        <a href="javascript:;">跑步机</a>
                        <i>&gt</i>
                        <ul class="child-ul">
                            <!-- <li><img src="http://www.shuhua.com/upload/icon/1460929558192618435.jpg" alt=""> 智能跑步机</li> -->
                            <li>多功能跑步机</li>
                            <li>跑步机垫子</li>
                            <li></li>
                            <li></li>
                            <li></li>
                        </ul>
                    </li>
                    <li class="index-li">
                        <a href="javascript:;">跑步机</a>
                        <i>&gt</i>
                        <ul class="child-ul">
                            <!-- <li><img src="http://www.shuhua.com/upload/icon/1460929558192618435.jpg" alt=""> 智能跑步机</li> -->
                            <li>多功能跑步机</li>
                            <li>跑步机垫子</li>
                            <li></li>
                            <li></li>
                            <li></li>
                        </ul>
                    </li>
                    <li class="index-li">
                        <a href="javascript:;">跑步机</a>
                        <i>&gt</i>
                        <ul class="child-ul">
                            <!-- <li><img src="http://www.shuhua.com/upload/icon/1460929558192618435.jpg" alt=""> 智能跑步机</li> -->
                            <li>多功能跑步机</li>
                            <li>跑步机垫子</li>
                            <li></li>
                            <li></li>
                            <li></li>
                        </ul>
                    </li>
                    <li class="index-li">
                        <a href="javascript:;">跑步机</a>
                        <i>&gt</i>
                        <ul class="child-ul">
                            <!-- <li><img src="http://www.shuhua.com/upload/icon/1460929558192618435.jpg" alt=""> 智能跑步机</li> -->
                            <li>多功能跑步机</li>
                            <li>跑步机垫子</li>
                            <li></li>
                            <li></li>
                            <li></li>
                        </ul>
                    </li>
                    <li class="index-li">
                        <a href="javascript:;">跑步机</a>
                        <i>&gt</i>
                        <ul class="child-ul">
                            <!-- <li><img src="http://www.shuhua.com/upload/icon/1460929558192618435.jpg" alt=""> 智能跑步机</li> -->
                            <li>多功能跑步机</li>
                            <li>跑步机垫子</li>
                            <li></li>
                            <li></li>
                            <li></li>
                        </ul>
                    </li>
                    <li class="index-li">
                        <a href="javascript:;">跑步机</a>
                        <i>&gt</i>
                        <ul class="child-ul">
                            <!-- <li><img src="http://www.shuhua.com/upload/icon/1460929558192618435.jpg" alt=""> 智能跑步机</li> -->
                            <li>多功能跑步机</li>
                            <li>跑步机垫子</li>
                            <li></li>
                            <li></li>
                            <li></li>
                        </ul>
                    </li>
                </ul>
            </div>
            <div class="pre">
                
            </div>
            <div class="small-title">
                <ul>
                    <li class="this-small-title"></li>
                    <li></li>
                    <li></li>
                    <li></li>
                </ul>
            </div>
            <div class="play">
                <ul>
                    <li><a href="javascript::" ><img src="http://www.shuhua.com/upload/img/20190905/1567642744041471312.jpg" alt=""></a></li>
                    <li><a href="javascript::" ><img src="http://www.shuhua.com/upload/img/20190613/1560382063717922396.jpg" alt=""></a></li>
                    <li><a href="javascript::" ><img src="http://www.shuhua.com/upload/img/20190613/1560382106806307577.jpg" alt=""></a></li>
                    <li><a href="javascript::" ><img src="http://www.shuhua.com/upload/img/20190613/1560386379054451841.jpg" alt=""></a></li>
                </ul>
            </div>
            <div class="next"></div>
            
        </div>
        <div class="home-sub">
            <ul style="display: flex;">
                <li><a href="javascript"><img src="http://www.shuhua.com/upload/img/20181022/1540145569600621713.jpg" alt=""></a></li>
                <li><a href="javascript"><img src="http://www.shuhua.com/upload/img/20181022/1540145569600621713.jpg" alt=""></a></li>
                <li><a href="javascript"><img src="http://www.shuhua.com/upload/img/20181022/1540145569600621713.jpg" alt=""></a></li>
                <li><a href="javascript"><img src="http://www.shuhua.com/upload/img/20181022/1540145569600621713.jpg" alt=""></a></li>
            </ul>
        </div>
        <div class="home-start">
            <div class="start-head">
                <h2>明星爆款</h2>
                <div class="more">
                    <a href="javascript:void(0);" class="stop-jump">&lt</a>
                    <a href="javascript:void(0);">&gt</a>
                </div>
            </div>
            <div class="start-store">
                <ul>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                </ul>
            </div>

        </div>
    </div>
    <div class="store-page">
        <div class="store-center">
            <div class="one-page">
                <div class="page-title">跑步机</div>
                <div class="first-img">
                    <img src="http://www.shuhua.com/upload/img/20190613/1560384760673672349.jpg" alt="">

                </div>
                <ul>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>

                </ul>
            </div>
            <div class="one-page">
                <div class="page-title">跑步机</div>
                <div class="first-img">
                    <img src="http://www.shuhua.com/upload/img/20190613/1560384760673672349.jpg" alt="">

                </div>
                <ul>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>

                </ul>
            </div>
            <div class="one-page">
                <div class="page-title">跑步机</div>
                <div class="first-img">
                    <img src="http://www.shuhua.com/upload/img/20190613/1560384760673672349.jpg" alt="">

                </div>
                <ul>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>

                </ul>
            </div>
            <div class="one-page">
                <div class="page-title">跑步机</div>
                <div class="first-img">
                    <img src="http://www.shuhua.com/upload/img/20190613/1560384760673672349.jpg" alt="">

                </div>
                <ul>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>
                    <li></li>

                </ul>
            </div>
        </div>

    </div>
    <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
    <script>
        $(function(){
            var maxWidth = window.screen.width;

            var maxHeight = window.screen.height;


        $(".gonggao").hover(function(){
            $(this).css("background","width")
            $(".gong-gao-down").slideDown()

        },function(){
            $(this).css("background","none")
            $(".gong-gao-down").slideUp()
        })
        //图片切换
        var time;
        //图片偏移的百分比
        var offset=0;
        //第几个小点点
        var small_title=0;
        //明星爆款轮播图片偏移百分比
        var start_setoff=0
        //明星计步器
        var start_time;
        //第几个明星滚播图
        var start_bor;
        //自动切换图片
        function autoplay(){
            time=setInterval(function(){
                offset-=100
                if(offset<=-400){
                    offset=0
                }
                $(".small-title li").removeClass("this-small-title")
                small_title=offset/-100
                $(".small-title li").eq(small_title).addClass("this-small-title")
                $(".play ul").animate({marginLeft:offset+"%"})
            },5000)
        }
        autoplay()
        //明星爆款切换
        function auto_start_play(){
            var start_time=setInterval(function(){
                start_setoff-=100
                if(start_setoff<=-200){
                    start_setoff=0
                }
                $(".start-store ul").animate({marginLeft:start_setoff+"%"})
                start_bor=start_setoff/-100
                
                $(".more a").removeClass("stop-jump")
                $(".more a").eq(start_bor).addClass("stop-jump")

            },6000)
        }
        auto_start_play()
        //点击明星爆款图切换
        $(".more a").click(function(){
            let indexs=$(this).index()
            start_setoff=indexs*-100
            $(".more a").removeClass("stop-jump")
            $(".more a").eq(indexs).addClass("stop-jump")
            $(".start-store ul").animate({marginLeft:start_setoff+"%"})
        })
        //点击小点点切换图片
        $(".small-title li").click(function(){
            let index=$(this).index()
            offset=index*-100
            $(".small-title li").removeClass("this-small-title")
            $(".small-title li").eq(index).addClass("this-small-title")
            $(".play ul").css({marginLeft:offset+"%"})
        })
        $(".index-li").hover(function(){
            $(this).children("ul").css({"display":"block","z-index":"1"})
        },function(){
            $(".index-li ul").css({"display":"none","z-index":"0"})
        })
        $(".search input").eq(0).focus(function(){
            console.log("haha");
            $(".search-hot-words").css("display","none")
            $(".search-recommend").css("display","block")
        })
        $(".search input").eq(0).blur(function(){
            console.log("haha");
            $(".search-hot-words").css("display","block")
            $(".search-recommend").css("display","none")
        })
        
    })
    </script>
</body>
</html>